#coding=utf-8

from django.views.generic import FormView
from django.forms.models import ModelForm
from django.forms.fields import CharField
from django.utils.safestring import mark_safe

from dialog_form.models import TipoDeInstrumento
from dialog_form.widgets import DialogInput


class TipoDeInstrumentoForm(ModelForm):
    material = CharField(widget=DialogInput)
    class Meta:
        model = TipoDeInstrumento


class TipoDeInstrumentoFormView(FormView):
    model = TipoDeInstrumento
    form_class = TipoDeInstrumentoForm
    template_name = 'dialog_form/tipodeinstrumento_form.html'